<template>
  <div>
    <table class="my-table">
      <thead>
        <slot name="title"></slot>
      </thead>
      <tbody>
        <tr v-for="item in goods" :key="item.id">
          <slot name="main" :item="item"></slot>
        </tr>
      </tbody>
    </table>
  </div>
</template>

<script>
export default {
  name: 'HmTable',
  props: {
    goods: {
      type: Array,
      required: true,
      default: () => [],
    },
  },
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  methods: {},
}
</script>

<style scoped></style>
